package com.seed.auth.entity;

import java.io.Serializable;
import java.util.Date;

import com.seed.auth.utils.Clock;

public class BaseEntity implements Serializable {
    
    private static final long serialVersionUID = -4805317731614458273L;
    
    private static final Clock clock = Clock.DEFAULT;

    private String id;
    
    private String memo;
    
    private String flag = "0";
    
    private Long version = 0L;

    protected String createdBy;

    protected Date createdDt = clock.getCurrentDate();

    protected String updatedBy;

    protected Date updatedDt = clock.getCurrentDate();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDt() {
        return createdDt;
    }

    public void setCreatedDt(Date createdDt) {
        this.createdDt = createdDt;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getUpdatedDt() {
        return updatedDt;
    }

    public void setUpdatedDt(Date updatedDt) {
        this.updatedDt = updatedDt;
    }
    
}
